package com.zdj.model.param;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author zhangdj
 * @date 2023-01-17 17:25
 */
@Data
public class DateFormatParam {

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @NotNull
    private Long id;
}
